package com.hookgetaway.utils;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Display;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.TextView;
import java.util.concurrent.atomic.AtomicInteger;

/* compiled from: ViewUtil.java */
/* loaded from: classes3.dex */
public class nm2 {
    public static final AtomicInteger a = new AtomicInteger(1);

    public static float h(float f) {
        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, f, GetAwayApplication.getAppContext().getResources().getDisplayMetrics());
    }


    public static float B(float f) {
        return f / GetAwayApplication.getAppContext().getResources().getDisplayMetrics().density;
    }

}